package com.tz.spring.annotation.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.tz.spring.annotation.dao.IStudentAnnotationDao;
import com.tz.spring.annotation.service.IStudentAnnotationService;
import com.tz.spring.sysmanage.entity.Student;

/**
 * 用于对外提供学生服务类的增删改查实现
 * @author Administrator
 *
 */
@Service("studentAnnotationService")
public class StudentAnnotationService implements IStudentAnnotationService{

	@Autowired
	private IStudentAnnotationDao studentAnnotationDao;
	

	public void setStudentAnnotationDao(IStudentAnnotationDao studentAnnotationDao) {
		this.studentAnnotationDao = studentAnnotationDao;
	}

	@Override
	public boolean addStudent(Student student) {
		return this.studentAnnotationDao.addStudent(student);
	}

	@Override
	public boolean delStudent(Integer studentId) {
		return this.studentAnnotationDao.delStudent(studentId);
	}

	@Override
	public boolean updateStudent(Student student) {
		return this.studentAnnotationDao.updateStudent(student);
	}

	@Override
	public List<Student> getStudentList() {
		return this.studentAnnotationDao.getStudentList();
	}

	@Override
	public List<Map<String, Object>> getStudentMap() {
		 return this.studentAnnotationDao.getStudentMap();
	}
	
 
}
